<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2018/5/29
 * Time: 20:00
 */

namespace app\model;


class Statics extends Model
{
    public function __construct($db)
    {
        parent::__construct($db, "h5_statics");
    }

    /**
     * 查询点赞了哪些视频
     */
    public function zan($uuid){
        $this->db->select("video_uuid,other_uuid,other_id");
        $this->db->from("material_zan");
        $this->db->where(["my_uuid"=>$uuid]);
        $this->db->order_by(["id"=>"desc"]);
        $query =  $this->db->get();
        $datas = $query->all();
        $data["data"] = $datas;
        //        echo $this->db->last_query();exit;
        return $data["data"];
    }
}